import 'package:flutter/material.dart';
import 'package:flutter/services.dart';

import 'pub/Routes.dart';

void main() {
  runApp(MyApp());
  SystemUiOverlayStyle systemUiOverlayStyle = SystemUiOverlayStyle(statusBarColor:Colors.transparent);
  SystemChrome.setSystemUIOverlayStyle(systemUiOverlayStyle);
}

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
          color: Color(0xFF333333),
          debugShowCheckedModeBanner: false, //去掉debug图标
          initialRoute: '/', //初始化的时候加载的路由
          onGenerateRoute: onGenerateRoute,
          theme: ThemeData(
              platform: TargetPlatform.iOS,
              cursorColor: Color(0xFFC40D3C),
              focusColor: Color(0xFFC40D3C),
              backgroundColor: Color(0xFFF6F6F6),
              scaffoldBackgroundColor: Color(0xFFF6F6F6),
              appBarTheme: AppBarTheme(color: Color(0xFFF6F6F6))),
              
        );
  }
}